import request from '@/utils/request'

// 查询业务员提现申请列表
export function listSalesmanPayoutDetail(query) {
  return request({
    url: '/salesmanPayoutDetail/salesmanPayoutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询业务员提现申请详细
export function getSalesmanPayoutDetail(id) {
  return request({
    url: '/salesmanPayoutDetail/salesmanPayoutDetail/' + id,
    method: 'get'
  })
}

// 新增业务员提现申请
export function addSalesmanPayoutDetail(data) {
  return request({
    url: '/salesmanPayoutDetail/salesmanPayoutDetail',
    method: 'post',
    data: data
  })
}

// 修改业务员提现申请
export function updateSalesmanPayoutDetail(data) {
  return request({
    url: '/salesmanPayoutDetail/salesmanPayoutDetail',
    method: 'put',
    data: data
  })
}

// 删除业务员提现申请
export function delSalesmanPayoutDetail(id) {
  return request({
    url: '/salesmanPayoutDetail/salesmanPayoutDetail/' + id,
    method: 'delete'
  })
}
